<? $this->load->view('includes/header'); ?>
<div id="leftContentContainer">
    <?php echo $categoryString; ?>

    <?php
    if (count($categoriesArray)>1) {
        echo '<div class="boxBlue" style="margin-top: 24px;">';
        echo '<ul class="categories">';
        foreach($categoriesArray as $category) {
            $noOfResources = $category['Resources'];
            if ($noOfResources == 0) {
                $txt = 'No resources';
            } elseif ($noOfResources == 1) {
                $txt = $noOfResources.' resource';
            } else {
                $txt  = $noOfResources.' resources';
            }
            echo '<li><a href="'.site_url($this->uri->uri_string().'/'.$category['CategoryNameLink']).'">'.$category['CategoryName'].'</a> <span class="subText">('.$txt.')</span></li>';
        }
        echo '</ul>';
        echo '</div>';
    }
    if (isset($resourcesArray) && !empty($resourcesArray)) {
        foreach($resourcesArray as $resource) {
            
            echo renderResourceSmall($resource);
        }
    }
    ?>
</div>
<? $this->load->view('includes/rightColumn'); ?>
<? $this->load->view('includes/footer'); ?>